package com.zking.web.lp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zking.dao.domain.Information;
import com.zking.service.lp.Basedao;

@Controller
public class insertController {
	@Autowired
	private Basedao basedao;
	
	@RequestMapping(value = "/insert")
	public String insert(Information information) {
		int i = basedao.addRole(information);
		if(i!=0) {
			return "success";
		}else {
			return "index03";
		}
	}
}
